package com.example.lab.event;

import org.springframework.context.ApplicationEvent;

/**
 * 实验室状态变更事件
 */
public class LaboratoryStatusChangedEvent extends ApplicationEvent {

    private final Integer labId;
    private final boolean enabled;

    public LaboratoryStatusChangedEvent(Object source, Integer labId, boolean enabled) {
        super(source);
        this.labId = labId;
        this.enabled = enabled;
    }

    public Integer getLabId() {
        return labId;
    }

    public boolean isEnabled() {
        return enabled;
    }
}
